//
//  QAViewCell.h
//  xpkc
//
//  Created by TopSageOSX on 15/2/28.
//  Copyright (c) 2015年 TopSage. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "myAskModel.h"

typedef NS_ENUM(int, MsgState) {
    MsgStateWait,//已提问或已回复，等待中
    MsgStateRecive,//收到新的回复
    MsgStateReaded//已读最新回复
};

@interface QAViewCell : UITableViewCell

/**
 *  消息状态
 */
@property (nonatomic, assign) MsgState msgState;
/**
 *  问题内容
 */
@property (nonatomic, strong) NSString *questionStr;
/**
 *  发布时间
 */
@property (nonatomic, strong) NSString *timeStr;


@property (nonatomic,retain) UILabel * myasktitle;
@property (nonatomic,retain) UILabel * myname;
@property (nonatomic,retain) UILabel *text;

@property (nonatomic,strong) UIView * bigView;

@property (nonatomic,strong) UIView * lineLabel;
@property (nonatomic,strong) UIImageView * rightView;

@property (nonatomic,strong) UIImageView * flagView;
@property (nonatomic,strong) UILabel * questionLabel;
@property (nonatomic,strong) UILabel * timeLabel;
@property (nonatomic,strong) UILabel * stateLabel;


/*
 UIImageView *flagView;
 UILabel *question;
 UILabel *time;
 UILabel *state;
 
 */

-(void)configWithAskModel:(myAskModel *)askmodel;

-(CGFloat)getHeightAskModel:(myAskModel *)askModel;

@end
